home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / Developer Essentials Jul 90 / DTS Sample Code / Macintosh Sample Code / Monthly Releases (Compressed) / MacDTS.Sample.Code.89.06.sit / SC.014.CPlusTESample / TApplication.r / TApplication.r
Encoding:
Text File  |  1989-04-02  |  2.3 KB  |  101 lines  |  [TEXT/MPS ]

  1. /*------------------------------------------------------------------------------
  2. #
  3. #    Apple Macintosh Developer Technical Support
  4. #
  5. #    MultiFinder-Aware Simple TextEdit Sample Application
  6. #
  7. #    CPlusTESample
  8. #
  9. #    TApplication.r    -    Rez source
  10. #
  11. #    Copyright © 1989 Apple Computer, Inc.
  12. #    All rights reserved.
  13. #
  14. #    Versions:    
  15. #            1.00                     04/89
  16. #
  17. #    Components:
  18. #            CPlusTESample.make        April 1, 1989
  19. #            TApplicationCommon.h    April 1, 1989
  20. #            TApplication.h            April 1, 1989
  21. #            TDocument.h                April 1, 1989
  22. #            TECommon.h                April 1, 1989
  23. #            TESample.h                April 1, 1989
  24. #            TEDocument.h            April 1, 1989
  25. #            TApplication.cp            April 1, 1989
  26. #            TDocument.cp            April 1, 1989
  27. #            TESample.cp                April 1, 1989
  28. #            TEDocument.cp            April 1, 1989
  29. #            TESampleGlue.a            April 1, 1989
  30. #            TApplication.r            April 1, 1989
  31. #            TESample.r                April 1, 1989
  32. #
  33. #    CPlusTESample is an example application that demonstrates
  34. #    how to initialize the commonly used toolbox managers,
  35. #    operate successfully under MultiFinder, handle desk
  36. #    accessories and create, grow, and zoom windows. The
  37. #    fundamental TextEdit toolbox calls and TextEdit autoscroll
  38. #    are demonstrated. It also shows how to create and maintain
  39. #    scrollbar controls. 
  40. #
  41. #    This version of TESample has been substantially reworked in
  42. #    C++ to show how a "typical" object oriented program could
  43. #    be written. To this end, what was once a single source code
  44. #    file has been restructured into a set of classes which
  45. #    demonstrate the advantages of object-oriented programming.
  46. #
  47. ------------------------------------------------------------------------------*/
  48.  
  49. #include "SysTypes.r"
  50. #include "Types.r"
  51.  
  52. #include "TApplicationCommon.h"
  53.  
  54. /* this ALRT and DITL are used as an error screen */
  55. resource 'ALRT' (rUserAlert, purgeable) {
  56.     {40, 20, 150, 260},
  57.     rUserAlert,
  58.     { /* array: 4 elements */
  59.         /* [1] */
  60.         OK, visible, silent,
  61.         /* [2] */
  62.         OK, visible, silent,
  63.         /* [3] */
  64.         OK, visible, silent,
  65.         /* [4] */
  66.         OK, visible, silent
  67.     }
  68. };
  69.  
  70. resource 'DITL' (rUserAlert, purgeable) {
  71.     { /* array DITLarray: 3 elements */
  72.         /* [1] */
  73.         {80, 150, 100, 230},
  74.         Button {
  75.             enabled,
  76.             "OK"
  77.         },
  78.         /* [2] */
  79.         {10, 60, 60, 230},
  80.         StaticText {
  81.             disabled,
  82.             "Error. ^0."
  83.         },
  84.         /* [3] */
  85.         {8, 8, 40, 40},
  86.         Icon {
  87.             disabled,
  88.             2
  89.         }
  90.     }
  91. };
  92.  
  93.  
  94. resource 'STR#' (kErrStrings, purgeable) {
  95.     {
  96.     "You must run on 512Ke or later";
  97.     "Application Memory Size is too small"
  98.     }
  99. };
  100.  
  101.